package com.example.demo.controller;

import com.example.demo.common.ResponseMessage;
import com.example.demo.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/manage/category/")
public class CategoryController {
    @Autowired
    private ICategoryService iCategoryService;

    @RequestMapping("get_category.do")
    public ResponseMessage categoryList(){
        ResponseMessage res = iCategoryService.getCategoryList();
        return res;
    }

}
